package gth.news.domain;

import java.util.Date;

public class News {
    private Integer id;
    private String title;
    private String content;
    private Date insertDate;
    private Date updateDate;

    public News(String title, String content) {
        this.title = title;
        this.content = content;
        insertDate = new Date();
    }

    public News(Integer id, String title, String content, Date insertDate, Date updateDate) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.insertDate = insertDate;
        this.updateDate = updateDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getInsertDate() {
        return insertDate;
    }

    public void setInsertDate(Date insertDate) {
        this.insertDate = insertDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
}
